<?php


				$url = new iUrl;
				$argv1 = $url->var_a;

				$news = new DB("news");
						$news->setColPrefix("news_");
						$news->setSort("news_id DESC");
						if($argv1 != "")$news->select("news_id='$argv1'"); else $news->select();
						while($news->nextRecord()){
							
							$content .= "
							<article class='news_post_".$news->id."'>
								<header><h2>
											<a href='".iUrl::makeClean("?lang_id=en&page_url=news&var_a=".$news->id)."'>
											".$news->title."
											</a>
										</h2>
								</header>
								<footer class='post-info'>
									<abbr class='published' title=''>
									".showdate("longdate", $news->date)."
									</abbr>
									<address class='vcard author'>
									".iKernel::getUser("firstname", $news->poster)." ".iKernel::getUser("lastname", $news->poster)."
									</address>
								</footer>
								<section id='news_post_".$news->id."'>
									".$news->post."
								</section>
							</article>
							<hr />
							";
							
					}
